package com.example.huadi1.mapper;

import com.example.huadi1.dto.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {
    Supplier selectSupplier(@Param("supplierId") int supplierId, @Param("textbookId") int textbookId);

    List<Supplier> selectAllSupplier();
    List<Supplier> selectSupplierByTextbook(Integer textbookId);
    void insertSupplier(Supplier supplier);

    void updateSupplier(Supplier supplier);

    void deleteSupplier(@Param("supplierId") int supplierId, @Param("textbookId") int textbookId);
}
